﻿' LibWowArmory
' by Ronald M. Clifford (roncli@roncli.com)
'
' This source code is released under the GNU Library General Public License (LGPL) Version 2.1.

Imports System.Collections.Generic
Imports System.Xml.Serialization

Namespace roncliProductions.LibWowArmory.CharacterReputationSchema

    Public Class faction

        Private intHeader As Integer
        Private strIconKey As String
        Private intID As Integer
        Private strKey As String
        Private strName As String
        Private intReputation As Integer = Integer.MinValue
        Private fFaction As New List(Of faction)

        <XmlAttribute()> Public Property header() As Integer
            Get
                Return intHeader
            End Get
            Set(ByVal value As Integer)
                intHeader = value
            End Set
        End Property

        <XmlAttribute()> Public Property iconKey() As String
            Get
                Return strIconKey
            End Get
            Set(ByVal value As String)
                strIconKey = value
            End Set
        End Property

        <XmlAttribute()> Public Property id() As Integer
            Get
                Return intID
            End Get
            Set(ByVal value As Integer)
                intID = value
            End Set
        End Property

        <XmlAttribute()> Public Property key() As String
            Get
                Return strKey
            End Get
            Set(ByVal value As String)
                strKey = value
            End Set
        End Property

        <XmlAttribute()> Public Property name() As String
            Get
                Return strName
            End Get
            Set(ByVal value As String)
                strName = value
            End Set
        End Property

        <XmlAttribute()> Public Property reputation() As Integer
            Get
                Return intReputation
            End Get
            Set(ByVal value As Integer)
                intReputation = value
            End Set
        End Property

        <XmlElement()> Public Property faction() As List(Of faction)
            Get
                Return fFaction
            End Get
            Set(ByVal value As List(Of faction))
                fFaction = value
            End Set
        End Property

    End Class

End Namespace